package com.sx.erp.dao;

import java.util.List;

public interface IBaseDao<T> {
	void save(T entity);

	void delete(Long id);

	void updata(T entity);

	T get(Long id);

	List<T> find(String where, Object[] params, int start, int size);

	List<T> find(String where, Object[] params);

	Integer betachUpdate(String hql, Object[] params);
	
	Object getSingleObject(String hql, Object[] params);
}
